package cn.tedu.basic;
/*本类用于测试==比较*/
public class TsetOperator {
    public static void main(String[] args) {
        Cat c1 = new Cat();
        Cat c2 = new Cat();
        System.out.println(c1==c2);


        int[] a1 = {1,2,3};
        int[] a2 = {1,2,3};
        int[] a3 = a2;
        System.out.println(a1==a2);
        System.out.println(a1.equals(a2));
        System.out.println(a2.equals(a3));//true

        int b1 = 4;
        int b2 = 4;
        System.out.println(b1==b2);//true

        boolean f1 = false;
        boolean f2 = false;
        System.out.println(f1==f2);//true

    }
}

class Cat{
    String name;
    int age;
    public void bark(){
        System.out.println("小猫喜欢喵喵叫~");
    }
}